//
//  ThemeTableViewCell.m
//  TravelToHelp
//
//  Created by lanou3g on 15/10/30.
//  Copyright © 2015年 冯贵宾. All rights reserved.
//

#import "ThemeTableViewCell.h"

@implementation ThemeTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addSubviews];
    }
    return self;
}



- (void)addSubviews
{
    self.themeIMGView = [[UIImageView alloc] initWithFrame:CGRectMake(8, 30, kScreenWidth - 16, 170)];
    self.themeIMGView.layer.cornerRadius = 8;
    self.themeIMGView.layer.borderWidth = 1.5;
    self.themeIMGView.layer.borderColor = [UIColor clearColor].CGColor;
    self.themeIMGView.layer.masksToBounds = YES;
    [self addSubview:self.themeIMGView];
    
    
    self.backView = [[UIView alloc] initWithFrame:CGRectMake(kScreenWidth - 80, 160, 45, 20)];
    self.backView.backgroundColor = [UIColor blackColor];
    self.backView.alpha = 0.4;
    self.backView.layer.cornerRadius = 10;
    self.backView.layer.masksToBounds = YES;
    [self addSubview:self.backView];
    
    
    self.themeNameTXT = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth - 80, 160, 45, 20)];
    self.themeNameTXT.textColor = [UIColor whiteColor];
    self.themeNameTXT.textAlignment = NSTextAlignmentCenter;
    self.themeNameTXT.font = [UIFont systemFontOfSize:14];
    [self addSubview:self.themeNameTXT];

    
    
    
    self.themeTitleTXT = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 30)];
    [self addSubview:self.themeTitleTXT];
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
